Unary Subset-Sum is in Logspace

نویسنده

  • Daniel M. Kane
چکیده

In this paper we consider the Unary-Subset-Sum problem which is defined as follows: Given integers m1, . . . ,mn and B (written in unary), we define the subset sum problem to be that of determining whether or not there exists an S ⊆ [n] so that ∑ i∈Smi = B (note that for this problem the mi are often assumed to be non-negative). Let C = |B| + ∑n i=1 |xi| + 1. This problem can be solved using a standard dynamic program using space O(C) and time O(Cn). The dynamic program makes fundamental use of this large space and it is interesting to ask whether this requirement can be removed. Unary SubsetSum has been studied in small-space models of computation as early as 1980 in [4], where they showed that it was in NL. Since then the problem was studied in [2], where Cho and Huynh devised a complexity class between L and NL that contained Unary Subset-Sum as supporting evidence that it is not NL-complete. This problem was listed again in [1] claiming it to be an open problem as to whether or not it is in L. In 2010 it was recently shown in [3] that this problem was in Logspace as a consequence of a much more general algorithm. We provide a simple algorithm solving this problem in Logspace, which is also implementable in TC.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Complexity of Unary Subset Sum

Given a stream of n numbers and a number B, the subset sum problem deals with checking whether there exists a subset of the stream that adds to exactly B. The unary subset sum problem, USS, is the same problem when the input is encoded in unary. We prove that any p-pass randomized algorithm computing USS with error at most 1/3 must use space Ω( p ). For p ≤ B, we give a randomized p-pass algori...

متن کامل

Knapsack and subset sum problems in nilpotent, polycyclic, and co-context-free groups

In their paper [22], Myasnikov, Nikolaev, and Ushakov started the investigation of classical discrete integer optimization problems in general non-commutative groups. Among other problems, they introduced for a finitely generated (f.g.) group G the knapsack problem and the subset sum problem. The input for the knapsack problem is a sequence of group elements g1, . . . , gk, g ∈ G and it is aske...

متن کامل

The accepting power of unary string logic programs

The set of programs written in a small subset of pure Prolog called US is shown to accept exactly the class of regular languages. The language US contains only unary predicates and unary function symbols. Also, a subset of US called RUS is shown to be equivalent to US in its ability in accepting the class of regular languages. Every clause in RUS contains at most one function symbol in the head...

متن کامل

The First-Order Theory of Ground Tree Rewrite Graphs

We prove that the complexity of the uniform first-order theory of ground tree rewrite graphs is in ATIME(22 poly(n) , O(n)). Providing a matching lower bound, we show that there is a fixed ground tree rewrite graph whose first-order theory is hard for ATIME(22 poly(n) , poly(n)) with respect to logspace reductions. Finally, we prove that there is a fixed ground tree rewrite graph together with ...

متن کامل

Space and circuit complexity of monadic second-order definable problemes on tree-decomposable structures

A famous theorem of Courcelle states that every problem that is definable in monadic second-order (mso) logic can be solved in linear time on input structures of bounded tree width. While Courcelle’s result is optimal from the algorithmic point of view, this thesis shows how to solve monadic secondorder definable decision, counting, and optimization problems on tree-widthbounded structures opti...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1012.1336  شماره 

صفحات  -

تاریخ انتشار 2010